﻿using System;
using System.ServiceProcess;
using Inovout.Web.Http;

namespace KuaJing.Accountant.WebApi
{
    class Program
    {
        static void Main(string[] args)
        {
            WebApiService service = new WebApiService();
            if (Environment.UserInteractive)
            {
                service.Start(args);
                Console.WriteLine("Press any key to stop program");
                Console.Read();
                service.Stop();
            }
            else
            {
                ServiceBase.Run(service);
            }
        }
    }
}
